//
//  ST_TrophyRulesViewController.swift
//  btvideo
//
//  Created by mac on 2021/7/9.
//  Copyright © 2021 JarvanZhang. All rights reserved.
//

import UIKit

class ST_TrophyRulesViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        
        view.addSubview(cover_image_view)
        cover_image_view.snp.makeConstraints { (make) in
            make.width.equalTo(325)
            make.height.equalTo(337)
            make.center.equalToSuperview()
        }
        
        view.addSubview(close_btn)
        close_btn.snp.makeConstraints { (make) in
            make.bottom.equalTo(cover_image_view.snp.top).offset(-4)
            make.right.equalTo(cover_image_view).offset(5)
            make.width.height.equalTo(44)
        }
        
    }

    
    fileprivate lazy var cover_image_view:UIImageView = {
        let control = UIImageView()
        if let url = URL(string: "http://dev-btstatic.jingniaoapps.com/7m5acm1627299426"){
            control.pin_setImage(from: url)
        }
        return control
    }()
    
    fileprivate lazy var close_btn:UIButton = {
        
        let control = UIButton.init(type: UIButton.ButtonType.custom)
        control.setImage(ST_ImageUtils.imageName("注册_icon_关闭"), for: UIControl.State.normal)
        control.addTarget(self, action: #selector(cancel_handle), for: UIControl.Event.touchUpInside)
        return control
    }()
}

extension ST_TrophyRulesViewController{
    
    @objc func cancel_handle(){
        
        goback_previous_controller()
        
    }
}
